package com.jingdianjichi.auth.application.convert;

import com.jingdianjichi.auth.application.dto.AuthPermissionDTO;
import com.jingdianjichi.auth.application.dto.AuthRoleDTO;
import com.jingdianjichi.auth.domain.entity.AuthPermissionBO;
import com.jingdianjichi.auth.domain.entity.AuthRoleBO;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

/**
 * @author 86156
 * @version 1.0
 * @date 2024-10-31 9:46
 */
@Mapper
public interface AuthPermissionDTOConverter {
    /**
     * mapstruct 基于注解的方式 给添加了Mapper的接口生成对应的实现类,
     * 可以通过Mappers.getMapper来获取实现类的实例对象
     */
    AuthPermissionDTOConverter instance = Mappers.getMapper(AuthPermissionDTOConverter.class);

    AuthPermissionBO authPermissionDTOToBO(AuthPermissionDTO authPermissionDTO);

    AuthPermissionDTO authPermissionBOToDTO(AuthPermissionBO authPermissionBO);
}
